package learn_design_patterns.c4.pizzafm;

public class PizzaTestDrive {

	public static void main(String[] args) {
		SimplePizzaFactory pizzaFactory = new SimplePizzaFactory();
		PizzaStore pizzaStore = new PizzaStore(pizzaFactory);
		Pizza pizza = pizzaStore.orderPizza("cheese");
		System.out.println("We ordered a " + pizza.getName());
		System.out.println();
		
		Pizza pizza2 = pizzaStore.orderPizza("veggie");
		System.out.println("We ordered a " + pizza2.getName());
	}

}
